package 
{
	import laya.d3.core.Sprite3D;

	/**
	 * ...
	 * @author
	 */
	public class ModelManager{
		private static var instance:ModelManager;
		private var allModel:Sprite3D;
		public function ModelManager(){
			
		}

		public static function getInstance() : ModelManager
		{
			if(instance == null)
			{
				instance = new ModelManager();
			}
			return instance;
		}

		public function getModel(name:String):Sprite3D
		{
			if(allModel == null)
			{
				allModel = Sprite3D.load("res/model/model.lh");
			}
			return allModel.getChildByName(name) as Sprite3D;
		}
	}

}